package dmas.lab.models;

import java.util.ArrayList;
import java.util.List;

public class Contact extends Friend {

	private List<Friend> friends;
	private boolean author;

	public Contact(int ID) {
		super(ID);
		friends = new ArrayList<Friend>();
		author = false;
	}

	public boolean addFriend(Friend friend) {
		return friends.add(friend);
	}

	public boolean deleteFriend(Friend friend) {
		return friends.remove(friend);
	}

	public void setFriends(List<Friend> friends) {
		this.friends = friends;
	}

	public List<Friend> getFriends() {
		return friends;
	}

	public boolean isAuthor() {
		return author;
	}

	public void setAuthor(boolean author) {
		this.author = author;
	}
}